﻿@model IEnumerable<FlyingClub.Models.Plane>

@{
    ViewBag.Title = "Index Avion";
}

<h1>@ViewBag.Title</h1>

<div class="link-button">
    <a href="/Planes/Create#admin">Ajouter un nouvel avion</a>
</div>
<div></div>

<table class="planes-tab">
    <tbody>
        <tr>
            <td>Nom</td>
            <td>Prix/H</td>
            <td>Identifiant</td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
@foreach (var item in Model)
{
        <tr>
            <td>@Html.DisplayFor(modelItem => item.Name)</td>
            <td>@Html.DisplayFor(modelItem => item.HourRate)</td>
            <td>@Html.DisplayFor(modelItem => item.Number)</td>
            <td><a href="/Planes/Details/@item.ID#admin"><img src="@Url.Content("~/Content/images/nameplate.png")" alt="Détails" /></a></td>
            <td><a href="/Planes/Edit/@item.ID#admin"><img src="@Url.Content("~/Content/images/pen.png")" alt="Editer" /></a></td>
            <td><a href="/Planes/Delete/@item.ID#admin"><img src="@Url.Content("~/Content/images/remove.png")" alt="Supprimer" /></a></td>
        </tr>
}
    </tbody>
</table>
